<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/templates/layoutCourtier.xhtml">


	<ui:define name="content">
		<h:form>

			<p:menu>
				<p:submenu label="">
					<p:menuitem value="Liste des assureurs" action="verslisteassureurs"
						icon="ui-icon ui-icon-star" />
				</p:submenu>
			</p:menu>

		</h:form>

		<h:form>


			<p:panel header="#{msgs.nouvelAssureur}"
				style="width:50%;height:800px;">


				<p:fieldset legend="Assureur" toggleable="false">
					<h:panelGrid columns="3" cellpadding="10">


						<h:outputLabel for="raisonSociale" value="#{msgs.raisonSociale}:" />
						<p:inputText id="raisonSociale"
							value="#{manage.assureur.raisonSociale}" required="true"
							requiredMessage="#{msgs.messageRaisonSociale}">
						</p:inputText>
						<p:message id="msgRaisonSociale" for="raisonSociale" />



						<h:outputLabel for="adresse" value="#{msgs.adresse}:" />
						<p:inputText id="adresse" value="#{manage.assureur.adresse}"
							required="false">
						</p:inputText>
						<p:message id="msgAdresse" for="adresse" />


						<h:outputLabel for="responsable" value="#{msgs.responsable}:" />
						<p:inputText id="responsable"
							value="#{manage.assureur.responsable}" required="false">
						</p:inputText>
						<p:message id="msgResponsable" for="responsable" />

						<h:outputLabel for="telephone" value="#{msgs.numeroTel}:" />
						<p:inputText id="telephone" value="#{manage.assureur.telephone}"
							required="false">
						</p:inputText>
						<p:message id="msgTelephone" for="telephone" />

						<h:outputLabel for="email" value="#{msgs.email}:" />
						<p:inputText id="email" value="#{manage.assureur.email}"
							required="false">
						</p:inputText>
						<p:message id="msgEmail" for="email" />

					</h:panelGrid>


					<h:panelGroup>
						<h:panelGrid columns="3" style="width: 100%;"
							columnClasses="alignleft, aligncenter, alignright">


							<p:commandButton image="ui-icon ui-icon-refresh" immediate="true"
								style="width:120px" value="#{msgs.effacer}" action="refresh"
								ajax="false" />

							<p:commandButton image="ui-icon ui-icon-disk" style="width:120px"
								value="#{msgs.enregistrer}" action="#{manage.ajouterAssureur}"
								ajax="false" />

						</h:panelGrid>
					</h:panelGroup>
				</p:fieldset>


			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>